<!-- saved from url=(0014)about:internet -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>MecMapKorea.mxml</title>
<link rel="stylesheet" type="text/css" href="../../SourceStyles.css"/>
</head>

<body><pre><span class="MXMLProcessing_Instruction">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;</span>
<span class="MXMLComponent_Tag">&lt;mx:Canvas</span><span class="MXMLDefault_Text"> xmlns:mx=&quot;</span><span class="MXMLString">http://www.adobe.com/2006/mxml</span><span class="MXMLDefault_Text">&quot; width=&quot;</span><span class="MXMLString">400</span><span class="MXMLDefault_Text">&quot; height=&quot;</span><span class="MXMLString">300</span><span class="MXMLDefault_Text">&quot; xmlns:ns1=&quot;</span><span class="MXMLString">com.mechan.map.*</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">&gt;</span>
<span class="MXMLSpecial_Tag">&lt;mx:Script&gt;</span>
    <span class="ActionScriptOperator">&lt;!</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">CDATA</span><span class="ActionScriptBracket/Brace">[</span>
        <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">mx</span>.<span class="ActionScriptDefault_Text">collections</span>.<span class="ActionScriptDefault_Text">ArrayCollection</span>;
        <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">com</span>.<span class="ActionScriptDefault_Text">mechan</span>.<span class="ActionScriptDefault_Text">map</span>.<span class="ActionScriptDefault_Text">HitTestInfo</span>;
        <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">com</span>.<span class="ActionScriptDefault_Text">mechan</span>.<span class="ActionScriptDefault_Text">map</span>.<span class="ActionScriptDefault_Text">MapEvent</span>;
        <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">com</span>.<span class="ActionScriptDefault_Text">mechan</span>.<span class="ActionScriptDefault_Text">map</span>.<span class="ActionScriptDefault_Text">MapItem</span>;
        
        <span class="ActionScriptReserved">private</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">testButton1</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptReserved">void</span>
        <span class="ActionScriptBracket/Brace">{</span>
            <span class="ActionScriptDefault_Text">mapbase</span>.<span class="ActionScriptDefault_Text">setRegionalColor</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;경기&quot;</span>, 0<span class="ActionScriptDefault_Text">x85DB18</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptDefault_Text">mapbase</span>.<span class="ActionScriptDefault_Text">setRegionalColor</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;강원&quot;</span>, 0<span class="ActionScriptDefault_Text">xCDE855</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptDefault_Text">mapbase</span>.<span class="ActionScriptDefault_Text">setRegionalColor</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;경남&quot;</span>, 0<span class="ActionScriptDefault_Text">xF5F6D4</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptDefault_Text">mapbase</span>.<span class="ActionScriptDefault_Text">setRegionalColor</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;경북&quot;</span>, 0<span class="ActionScriptDefault_Text">xA7C520</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptDefault_Text">mapbase</span>.<span class="ActionScriptDefault_Text">setRegionalColor</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;전남&quot;</span>, 0<span class="ActionScriptDefault_Text">x493F0B</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptDefault_Text">mapbase</span>.<span class="ActionScriptDefault_Text">setRegionalColor</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;전북&quot;</span>, 0<span class="ActionScriptDefault_Text">x7E8AA2</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptDefault_Text">mapbase</span>.<span class="ActionScriptDefault_Text">setRegionalColor</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;충남&quot;</span>, 0<span class="ActionScriptDefault_Text">xFFC0A9</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptDefault_Text">mapbase</span>.<span class="ActionScriptDefault_Text">setRegionalColor</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;충북&quot;</span>, 0<span class="ActionScriptDefault_Text">x7D8A2E</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptDefault_Text">mapbase</span>.<span class="ActionScriptDefault_Text">setRegionalColor</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;제주&quot;</span>, 0<span class="ActionScriptDefault_Text">xFF8598</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptDefault_Text">mapbase</span>.<span class="ActionScriptDefault_Text">setRegionalColor</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;서울&quot;</span>, 0<span class="ActionScriptDefault_Text">xFF9800</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptDefault_Text">mapbase</span>.<span class="ActionScriptDefault_Text">setRegionalColor</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;울산&quot;</span>, 0<span class="ActionScriptDefault_Text">xD1DBBD</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptDefault_Text">mapbase</span>.<span class="ActionScriptDefault_Text">setRegionalColor</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;부산&quot;</span>, 0<span class="ActionScriptDefault_Text">x7E8AA2</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptDefault_Text">mapbase</span>.<span class="ActionScriptDefault_Text">setRegionalColor</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;대구&quot;</span>, 0<span class="ActionScriptDefault_Text">x96CA2D</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptDefault_Text">mapbase</span>.<span class="ActionScriptDefault_Text">setRegionalColor</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;광주&quot;</span>, 0<span class="ActionScriptDefault_Text">xB5E655</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptDefault_Text">mapbase</span>.<span class="ActionScriptDefault_Text">setRegionalColor</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;대전&quot;</span>, 0<span class="ActionScriptDefault_Text">xEDF7F2</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptDefault_Text">mapbase</span>.<span class="ActionScriptDefault_Text">setRegionalColor</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;인천&quot;</span>, 0<span class="ActionScriptDefault_Text">x4BB5C1</span><span class="ActionScriptBracket/Brace">)</span>;
        <span class="ActionScriptBracket/Brace">}</span>
        
        <span class="ActionScriptReserved">private</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">mapItemClickHandler</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">event</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">MapEvent</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">:</span><span class="ActionScriptReserved">void</span>
        <span class="ActionScriptBracket/Brace">{</span>
            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">hit</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">HitTestInfo</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">event</span>.<span class="ActionScriptDefault_Text">hit</span>;
            
            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">hit</span>.<span class="ActionScriptDefault_Text">hitItem</span>.<span class="ActionScriptDefault_Text">text</span> <span class="ActionScriptOperator">==</span> <span class="ActionScriptString">&quot;서울&quot;</span><span class="ActionScriptBracket/Brace">)</span>
            <span class="ActionScriptBracket/Brace">{</span>
                <span class="ActionScriptDefault_Text">map_detail</span>.<span class="ActionScriptDefault_Text">visible</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">true</span>;
            <span class="ActionScriptBracket/Brace">}</span>
        <span class="ActionScriptBracket/Brace">}</span>
        
        <span class="ActionScriptReserved">private</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">exportMapData</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptReserved">void</span>
        <span class="ActionScriptBracket/Brace">{</span>
            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">map</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">ArrayCollection</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">mapbase</span>.<span class="ActionScriptDefault_Text">exportMapData</span><span class="ActionScriptBracket/Brace">()</span>;
        <span class="ActionScriptBracket/Brace">}</span>
    <span class="ActionScriptBracket/Brace">]]</span><span class="ActionScriptOperator">&gt;</span>
<span class="MXMLSpecial_Tag">&lt;/mx:Script&gt;</span>
    <span class="MXMLComponent_Tag">&lt;mx:VBox</span><span class="MXMLDefault_Text"> x=&quot;</span><span class="MXMLString">0</span><span class="MXMLDefault_Text">&quot; y=&quot;</span><span class="MXMLString">75</span><span class="MXMLDefault_Text">&quot; width=&quot;</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">&quot; height=&quot;</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">&gt;</span>
        <span class="MXMLComponent_Tag">&lt;ns1:MapKorea</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">mapbase</span><span class="MXMLDefault_Text">&quot; width=&quot;</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">&quot; height=&quot;</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">&quot; ShowLabel=&quot;</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">cbShowLabel</span>.<span class="ActionScriptDefault_Text">selected</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">&quot; itemClicked=&quot;</span><span class="ActionScriptDefault_Text">mapItemClickHandler</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">event</span><span class="ActionScriptBracket/Brace">)</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
    <span class="MXMLComponent_Tag">&lt;/mx:VBox&gt;</span>
    <span class="MXMLComponent_Tag">&lt;mx:TitleWindow</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">map_detail</span><span class="MXMLDefault_Text">&quot; showCloseButton=&quot;</span><span class="MXMLString">true</span><span class="MXMLDefault_Text">&quot; left=&quot;</span><span class="MXMLString">30</span><span class="MXMLDefault_Text">&quot; top=&quot;</span><span class="MXMLString">120</span><span class="MXMLDefault_Text">&quot; right=&quot;</span><span class="MXMLString">30</span><span class="MXMLDefault_Text">&quot; bottom=&quot;</span><span class="MXMLString">30</span><span class="MXMLDefault_Text">&quot; visible=&quot;</span><span class="MXMLString">false</span><span class="MXMLDefault_Text">&quot; close=&quot;</span><span class="ActionScriptBracket/Brace">{</span><span class="ActionScriptDefault_Text">map_detail</span>.<span class="ActionScriptDefault_Text">visible</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">false</span><span class="ActionScriptBracket/Brace">}</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">&gt;</span>
        <span class="MXMLComponent_Tag">&lt;ns1:MapSeoulDistrict</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">map_seoul</span><span class="MXMLDefault_Text">&quot; width=&quot;</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">&quot; height=&quot;</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">&quot; ShowLabel=&quot;</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">cbShowLabel</span>.<span class="ActionScriptDefault_Text">selected</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
    <span class="MXMLComponent_Tag">&lt;/mx:TitleWindow&gt;</span>
    <span class="MXMLComponent_Tag">&lt;mx:Button</span><span class="MXMLDefault_Text"> x=&quot;</span><span class="MXMLString">10</span><span class="MXMLDefault_Text">&quot; y=&quot;</span><span class="MXMLString">32</span><span class="MXMLDefault_Text">&quot; label=&quot;</span><span class="MXMLString">Button</span><span class="MXMLDefault_Text">&quot; click=&quot;</span><span class="ActionScriptDefault_Text">testButton1</span><span class="ActionScriptBracket/Brace">()</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
    <span class="MXMLComponent_Tag">&lt;mx:CheckBox</span><span class="MXMLDefault_Text"> x=&quot;</span><span class="MXMLString">83</span><span class="MXMLDefault_Text">&quot; y=&quot;</span><span class="MXMLString">32</span><span class="MXMLDefault_Text">&quot; label=&quot;</span><span class="MXMLString">Checkbox</span><span class="MXMLDefault_Text">&quot; id=&quot;</span><span class="MXMLString">cbShowLabel</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
    <span class="MXMLComponent_Tag">&lt;mx:Button</span><span class="MXMLDefault_Text"> x=&quot;</span><span class="MXMLString">173</span><span class="MXMLDefault_Text">&quot; y=&quot;</span><span class="MXMLString">32</span><span class="MXMLDefault_Text">&quot; label=&quot;</span><span class="MXMLString">Export</span><span class="MXMLDefault_Text">&quot; click=&quot;</span><span class="ActionScriptDefault_Text">exportMapData</span><span class="ActionScriptBracket/Brace">()</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
<span class="MXMLComponent_Tag">&lt;/mx:Canvas&gt;</span></pre></body>
</html>
